package com.splant.android.smart.SystemDefinedLevel.GenericControls.DateTimeSelceted;

/**
 * Created by Administrator on 2015/7/22.
 */
public class DateTimeSet {


    public static DateTimeType dateTimeType=DateTimeType.DATE_TIME;

    public static int getCount()
    {
        if (dateTimeType==DateTimeType.DATE_TIME)
            return 2;
        else
            return 1;
    }
    public static DateTimeType getDateTimeType(int position)
    {
        if (dateTimeType==DateTimeType.DATE_TIME)
        {
            if (position==0)
                return DateTimeType.DATE;
            else
                return DateTimeType.TIME;
        }
        else
            return dateTimeType;
    }

    public enum DateTimeType{
        DATE_TIME,DATE,TIME
    }
}
